home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Examples / Super_System_Classes / View Text ƒ / View Text.ReadMe < prev   
Text File  |  1994-10-21  |  2KB  |  32 lines

  1. Example:      View Text
  2. Written by:  Prograph International (Andrew Sacamano, Lynn McKaig)
  3. Contents:     View Text.pgs
  4.                     View Text.ReadMe
  5.  
  6. Needs Prograph Extensions:
  7.                     Math Primitives
  8.                     More Primitives
  9.                     Primitives
  10.                     
  11. Needs Libraries to Compile:
  12.                     SCLibrary 2.6
  13.                     Library 2.6
  14.  
  15. Standard Methods That Were Modified:
  16.                     Universal Initial
  17.                     Application/About
  18.                     Application/Update Menus
  19.  
  20. Description
  21. -----------
  22. View Text is a form of Scroll Text whose text can't be edited. This is useful, for example, when giving instructions or in-depth descriptions which would not fit into a regular text item.  If the 'select?' attribute of a View Text is set to TRUE, you can select text and copy it, but you still can't change its contents by typing over it.
  23.  
  24.  
  25. How to Use in Your Program
  26. -------------------------
  27. Selectively load the View Text class into your application.  When you are in Prograph's Window Editor, create an item and choose type "View Text".  The dialog for Scroll Text will appear, and you can set attributes as usual; however, the dialog will not have any way to set the "select?" attribute.  Shift-option-cmd-click on the object in the window to bring up a value window for the corresponding View Text instance, and set the select? attribute that way.
  28.  
  29. The "update Edit menu" methods in Edit Text and View Text can be called from Application/Update Menus as illustrated in this example.  If you change the select? attribute of a view text to FALSE while the view text is the selected item, an insertion point will be drawn, and won't start flashing. There's not much to do about this. (If you're feeling dangerous, see Tech Note 22.)
  30.  
  31.  
  32.